/*
 * Default style sheet on Linux Platforms with focus highlighting flag enabled
 */
QAds--DockContainer {
        background: palette(dark);
}

QAds--DockContainer > QSplitter{
	padding: 1 0 1 0;
}

QAds--DockContainer QAds--DockSplitter::handle {
        background: palette(dark);
}

QAds--DockPannel {
        background: palette(window);
        border: 1px solid white;
}

QAds--DockPannel #tabsMenuButton::menu-indicator {
        image: none;
}

QAds--DockTab {
        background: palette(window);
        border-color: palette(light);
        border-style: solid;
        border-width: 0 1px 0 0;
        padding: 0 0px;
}

QAds--DockTab[activeTab="true"] {
        background: qlineargradient(spread : pad, x1 : 0, y1 : 0, x2 : 0, y2 : 0.5, stop : 0
                palette(window), stop:1 palette(light));
        /*background: palette(highlight);*/
}

QAds--DockTab QLabel {
        color: palette(dark);
}

QAds--DockTab[activeTab="true"] QLabel {
        color: palette(foreground);
}

QAds--DockWidget {
        background: palette(light);
        border-color: palette(light);
        border-style: solid;
        border-width: 1px 0 0 0;
}

QAds--DockTitleBarButton {
        padding: 0px 0px;
}

QScrollArea#dockWidgetScrollArea {
        padding: 0px;
        border: none;
}

#dockPannelCloseButton {
        qproperty-icon: url(:/ads/images/close-button.svg),
                url(:/ads/images/close-button-disabled.svg) disabled;
        qproperty-iconSize: 16px;
}

#detachPannelButton {
        qproperty-icon: url(:/ads/images/detach-button.svg),
                url(:/ads/images/detach-button-disabled.svg) disabled;
        qproperty-iconSize: 16px;
}

#tabCloseButton {
        margin-top: 2px;
        background: none;
        border: none;
        padding: 0px -2px;
        qproperty-icon: url(:/ads/images/close-button.svg),
                url(:/ads/images/close-button-disabled.svg) disabled;
        qproperty-iconSize: 16px;
}

#tabCloseButton:hover {
        /*border: 1px solid rgba(0, 0, 0, 32);*/
        background: rgba(0, 0, 0, 24);
}

#tabCloseButton:pressed {
        background: rgba(0, 0, 0, 48);
}


#tabsMenuButton {
        qproperty-icon: url(:/ads/images/tabs-menu-button.svg);
        qproperty-iconSize: 16px;
}


/* Focus related styling */
QAds--DockTab[focused="true"] {
        background: palette(highlight);
        border-color: palette(highlight);
}

QAds--DockTab[focused="true"]>#tabCloseButton {
        qproperty-icon: url(:/ads/images/close-button-focused.svg)
}

QAds--DockTab[focused="true"]>#tabCloseButton:hover {
        background: rgba(255, 255, 255, 48);
}

QAds--DockTab[focused="true"]>#tabCloseButton:pressed {
        background: rgba(255, 255, 255, 92);
}

QAds--DockTab[focused="true"] QLabel {
        color: palette(light);
}

QAds--DockTitleBar {
        background: transparent;
        border-bottom: 2px solid palette(light);
        padding-bottom: 0px;
}

QAds--DockPannel[focused="true"] QAds--DockTitleBar {
        background: transparent;
        border-bottom: 2px solid palette(highlight);
        padding-bottom: 0px;
}


QAds--DockFloatingWidgetTitleBar {
    qproperty-maximizeIcon: url(:/ads/images/maximize-button.svg);
    qproperty-normalIcon: url(:/ads/images/restore-button.svg);
}


/* does not properly work on KDE
QAds--DockFloatingWidget[isActiveWindow="true"] QAds--DockFloatingWidgetTitleBar {
        background: palette(highlight);
        qproperty-maximizeIcon: url(:/ads/images/maximize-button-focused.svg);
        qproperty-normalIcon: url(:/ads/images/restore-button-focused.svg);
}

QAds--DockFloatingWidget[isActiveWindow="true"] #floatingTitleLabel {
        color: palette(light);
}
*/

#floatingTitleCloseButton, #floatingTitleMaximizeButton {
   qproperty-iconSize: 16px;
   border: none;
   margin: 6px 3px 6px 3px;
}


#floatingTitleCloseButton {
   qproperty-icon: url(:/ads/images/close-button.svg);
}


#floatingTitleCloseButton:hover, #floatingTitleMaximizeButton:hover {
    background: rgba(0, 0, 0, 24);
    border: none;
}


#floatingTitleCloseButton:pressed, #floatingTitleMaximizeButton:pressed {
    background: rgba(0, 0, 0, 48);
}


QAds--DockFloatingWidget[isActiveWindow="true"] #floatingTitleMaximizeButton {
    qproperty-iconSize: 16px;
}


/* does not properly work on KDE
QAds--DockFloatingWidget[isActiveWindow="true"] #floatingTitleCloseButton {
    qproperty-icon: url(:/ads/images/close-button-focused.svg);
    qproperty-iconSize: 16px;
}

QAds--DockFloatingWidget[isActiveWindow="true"] #floatingTitleCloseButton:hover,
QAds--DockFloatingWidget[isActiveWindow="true"] #floatingTitleMaximizeButton:hover {
    background: rgba(255, 255, 255, 48);
}


QAds--DockFloatingWidget[isActiveWindow="true"] #floatingTitleCloseButton:pressed,
QAds--DockFloatingWidget[isActiveWindow="true"] #floatingTitleMaximizeButton:pressed  {
    background: rgba(255, 255, 255, 92);
}
*/

